
import request from '@/utils/request'
const CATEGORY_API = {
    create:(data)=>{
        return request({
            url:'/resourceCategory/create',
            method:'post',
            data:data
        })
    },
    listAll:()=>{
        return request({
            url:'/resourceCategory/listAll',
            method:'get'
        })
    },
    delete:(id)=>{
        return request({
            url:`/resourceCategory/delete/${id}`,
            method:'get'
        })
    },
    update:(id,data) =>{
        return request({
            url:`/resourceCategory/update/${id}`,
            method:'post',
            data:data
        })
    }
}

export default CATEGORY_API